import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:jinke/global/user/user_info.dart';

class CreateQuesState {
  // title
  final _title = "".obs;
  set title(value) => _title.value = value;
  get title => _title.value;

  final nameCtrl = TextEditingController();
  final resulveCtrl = TextEditingController();

  late List<ItemModel> quess;

  List<UserInfo>? users;

  int leadIndex = -1;
  UserInfo? lead;
  List<int> helpIndexs = [];
  List<UserInfo>? helps;
  String? time;
  DateTime? date;

  int status = 0;

  CreateQuesState() {
    quess = [ItemModel(name: '未解决', isSelected: true), ItemModel(name: '已解决')];
  }
}

class ItemModel {
  String name;
  bool isSelected;

  ItemModel({required this.name, this.isSelected = false});
}
